<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : 
    // block_type  : page header

    // target      : Windows, php, ODBC
    // page_type   : list grid
    // arg         : startrow, int, get, page
    // arg         : maxrows, int, get, page

    $a_startrow = $startrow;
    $a_maxrows = $maxrows;
    
    
    
    require('wed_php_odbc.inc');

    // checksum    : 57849
?><html>

<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<title>Liste des emplacements libres</title>
<meta name="generator" content="Namo WebEditor v6.0">
</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<?  
    $w_disprows = 300;
    
    $w_sqlstr = "SELECT emplacements.num, emplacements.identifiant FROM emplacements WHERE (emplacements.identifiant = '0')";
    wed_read_list_process ("Vgreniers", "", "", $w_sqlstr, $w_record, $w_disprows, $a_startrow, $a_maxrows, $w_rows);
  ?>
  <?  
    $w_disprows = 300;
    
    $w_sqlstr = "SELECT emplacements.num, emplacements.identifiant FROM emplacements WHERE (emplacements.identifiant <> '0')";
    wed_read_list_process ("Vgreniers", "", "", $w_sqlstr, $w_record, $w_disprows, $a_startrow, $a_maxrows, $w_rows1);
    $pourcent = ($w_rows1/$w_rows)*100;
	$pourcent = (int) $pourcent;
  ?>
<p align="center"><b><font size="5" face="Arial">Liste des <? echo $w_rows ?> emplacements libres (<? echo $w_rows1 ?> pris <? echo $pourcent ?>%)</font></b></p>

<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : Bloc de table
    // block_type  : list grid

    // server      : Vgreniers
    // userid      : 
    // passwd      : 
    // table       : emplacements
    // where_cond  : emplacements.identifiant ='0'
    // field       : emplacements.num, int, not null, 0
    // field       : emplacements.identifiant, string, null, 15
    // disp_rows   : 260

    $w_disprows = 260;
    
    $w_sqlstr = "SELECT emplacements.num, emplacements.identifiant FROM emplacements WHERE (emplacements.identifiant ='0')";
    wed_read_list_process ("Vgreniers", "", "", $w_sqlstr, $w_record, $w_disprows, $a_startrow, $a_maxrows, $w_rows);

    // checksum    : 38491
?><table border="1" align="center" width="108">

<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : 
    // block_type  : list loop begin


    for ($w_i = 0; $w_i < $w_rows; $w_i++) {
    	$f_emplacements_num = $w_record[$w_i][0];
    	$f_emplacements_identifiant = $w_record[$w_i][1];

    // checksum    : 12847
?>    <tr>
        <td width="98">
            <p align="center"><?  // Namo WebEditor dbWizard Script.
                                  // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
                                  // Do not modify this block.

                                  // block_name  : Champ de sortie
                                  // block_type  : write

                                  // value       : <f,emplacements.num>
                                  // cache       : "write value"

                                  wed_write($f_emplacements_num);

                                  // checksum    : 14924
                              ?></p>
        </td>
    </tr>
<?  // Namo WebEditor dbWizard Script.
    // Copyright 1999-2003 Sejoong Namo Interacive Inc., All Rights Reserved.
    // Do not modify this block.

    // block_name  : 
    // block_type  : list loop end


    }

    // checksum    : 42643
?>
</table>
<p>&nbsp;</p>
</body>

</html>
